package entity;


import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;


@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue("AVION")
public class Avion extends ModeTransport {
	private String compagnie;

	public String toString() {
		return "[" + id + ", " + libelle + ", " + compagnie + "]";
	}

	public Avion() {
		super();
	}

	public Avion(String libelle, String compagnie) {
		super(libelle);
		this.compagnie = compagnie;
	}

	public String getCompagnie() {
		return compagnie;
	}

	public void setCompagnie(String compagnie) {
		this.compagnie = compagnie;
	}

}
